package cn.stylefeng.guns.czlm.service;

import cn.hutool.core.bean.BeanUtil;
import cn.stylefeng.guns.core.common.page.LayuiPageFactory;
import cn.stylefeng.guns.czlm.entity.Integralrecord;
import cn.stylefeng.guns.czlm.mapper.IntegralrecordMapper ;
import cn.stylefeng.guns.czlm.model.IntegralrecordDto ;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class IntegralrecordService extends ServiceImpl<IntegralrecordMapper,Integralrecord> {
    @Resource
    private IntegralrecordMapper integralrecordMapper;

    public List<Integralrecord> findIntegralrecordAll(String nickname) {
        return integralrecordMapper.findIntegralrecordAll(nickname);
    }

    public Integralrecord findIntegralrecordByIds(Integer integralid){
        return integralrecordMapper.findIntegralrecordByIds(integralid);
    }

    public void updateIldById(Integralrecord integralrecord){
        integralrecordMapper.updateIldById(integralrecord);
    }

    public void deleteIldById(Integer integralid){
        integralrecordMapper.deleteIldById(integralid);
    }
}
